﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace MVCToolkit.Attributes
{
    public class Html5PlaceholderAttribute : ModelMetaDataAttribute
    {
        /// <summary>
        /// Gets or sets the example string.
        /// </summary>
        /// <value>The example string </value>
        public string Value { get; set; }

        public override void Process(ModelMetadata modelMetaData)
        {
            modelMetaData.AdditionalValues.Add("html5placeholder", Value);
        }
    }
}
